package com.leyou.personnel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.pojo.Result;
import com.leyou.common.pojo.ResultLogin;
import com.leyou.personnel.data.entity.AdministratorsManager;
import com.leyou.personnel.data.vo.ManagerListSearchVo;
import com.leyou.personnel.data.vo.ManagerLoginVo;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xhh
 * @since 2022-05-18
 */
public interface AdministratorsManagerService extends IService<AdministratorsManager> {
    /**
     * 管理员登录
     *
     * @author: xhh
     * @date: 2022/5/18
     * @description: 传入账号 密码获取是否可以登录成功
     * @return: Map<String,Object>
     * @params: ManagerLoginVo
     */
    public ResultLogin managerLogin(ManagerLoginVo managerLoginVo);
    /**
     * 管理员全查
     *
     * @author: xhh
     * @date: 2022/5/22
     * @description: 带分页和搜索参数
     * @return: Result
     * @params: ManagerListSearchVo
     */
    public Result managerList(ManagerListSearchVo vo);
    /**
     * 管理员添加
     *
     * @author: xhh
     * @date: 2022/5/23
     * @description:
     * @return:
     * @params:
     */
    public Result managerInsert(AdministratorsManager administratorsManager);
    /**
     * 管理员批量删除
     *
     * @author: xhh
     * @date: 2022/5/23
     * @description:
     * @return:
     * @params:
     */
    public Result managerDel(List<String> managerAccountNumbers);
    /**
     * 重置密码
     *
     * @author: xhh
     * @date: 2022/5/23
     * @description:
     * @return:
     * @params:
     */
    public Result resetManagerPassword (String managerAccountNumber);
    /**
     * 添加时获取管理员账号
     *
     * @author: xhh
     * @date: 2022/5/23
     * @description:
     * @return:
     * @params:
     */
    public Result getGenerateManagerAccountNumber();
}
